StartupEvents.registry('block',event => { //方块
    event.create('incompleted_enchanting_table')
        .blockEntity(blockEntityInfo=>{
        blockEntityInfo.enableSync()//重要,设置可以同步data
        })
        .material('store')
        .hardness(5)
    event.create('pyrolusite')
    .blockEntity(blockEntityInfo=>{
        blockEntityInfo.enableSync()//重要,设置可以同步data
        })
        .material('iron')
        .requiresTool(true)
        .tagBlock('minecraft:mineable/pickaxe')
        .tagBlock("minecraft:needs_iron_tool")
        .hardness(2.5)
        .resistance(4.0)
        .tag("forge:ores")
        
    //一级升级符文
    event.create('rune_of_level')
    .blockEntity(blockEntityInfo=>{
    blockEntityInfo.enableSync()
    })
    .material('store')
    .hardness(5)
    //二级升级符文
    event.create('rune_of_level2')
    .blockEntity(blockEntityInfo=>{
    blockEntityInfo.enableSync()
    })
    .material('store')
    .hardness(5)
  })
StartupEvents.registry('fluid', event => {  //流体
    event.create('melting_incompleted_andesite_alloy')
    .thickTexture(0xFFAAFF)
    .bucketColor(0xFFAAFF)
    .noBlock()
    event.create('sodium_aluminate')
    .thickTexture(0xFFFFFF)
    .bucketColor(0xFFFFFF)
    .noBlock()
    event.create('melting_aluminum_alloy')
    .thinTexture(0xFFFFFF)
    .bucketColor(0xFFFFFF)
    .noBlock()
    .tag('tfc:molten_metals')
    event.create('melting_high_purity_aluminum')
    .thinTexture(0xFFFFFF)
    .bucketColor(0xFFFFFF)
    .luminosity(15)
    .noBlock()
    .tag('tfc:molten_metals')
    event.create('melting_titanium_aluminum_alloy')
    .thinTexture(0xABF7FF)
    .bucketColor(0xABF7FF)
    .luminosity(15)
    .noBlock()
    .tag('tfc:molten_metals')
    event.create('purified_water')
    .thinTexture(0x64F1FF)
    .bucketColor(0x64F1FF)
    })
StartupEvents.registry('item', event => {   //物品
    //未完成的安山合金
    event.create('incompleted_andesite_alloy')
    //未完成的黄铜筛网
    event.create('incompleted_advanced_brass_mesh')
    //摸头    
    event.create('patpat')
    //火箭合金锭
    event.create('incompleted_rocket_ingot')
    event.create('rocket_ingot')

    const items = ["pride","wrath","lust","gluttony","greed","sloth","envy","incompleted_component_steel","incompleted_component_electronic_adv",
    "incompleted_circuit_board","incompleted_light_bulb","incompleted_component_iron","incompleted_electron_tube","incompleted_component_electronic"]
    items.forEach(item =>{
        event.create(item)
    })
    event.create('sins_of_globe')
    event.create('raw_pyrolusite')
    event.create('manganese_mineral_powder')
    event.create('aluminum_alloy')
    .tag('forge:ingots/aluminum')
    event.create('high_purity_aluminum_ingot')
    .tag('forge:ingots/aluminum')
    .tag('tfc:metal_item/aluminum')
    event.create('titanium_aluminum_alloy')
    event.create('fluidbucket','tfc:mold')
    .capacity(1000)

    event.create('al_gun_parts')
    event.create('steel_gun_parts')
    event.create('tial_gun_parts')
    event.create('radiator')
    event.create('iron_gun_barrel')
    event.create('powder_snow_woodden_bucket')
    event.create('condensed_blood')

    event.create('syringe')
    event.create('used_syringe')
    event.create('adrenaline_syringe')
});
MMEvents.registerControllers(event => {
    event.create("work_controller").type("mm:machine")
    event.create("melting_controller").type("mm:machine")
    event.create('antiseptic_barral').type("mm:machine")
})

MMEvents.registerPorts(event => {
    event.create("wooden_port")
    .controllerId("mm:antiseptic_barral")
    .name('Wooden Port')
    .config("mm:item", i => {
        i.rows(2)
        i.columns(2)
    });
    event.create("wooden_fluid_port")
    .controllerId("mm:antiseptic_barral")
    .name('Wooden Fluid Port')
    .config("mm:fluid", i => {
        i.rows(1)
        i.columns(1)
        i.slotCapacity(40000)
    });
    event.create("wooden_kinetic_port")
    .name('Wooden Kinetic Port')
    .controllerId("mm:antiseptic_barral")
    .config("mm:create/kinetic", c => {
        c.stress(4)
    });


})
